<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include.inc.jsp" %>
<%--<%
session.removeValue("loginedUser");
%>--%>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=7"/>
    <title><s:text name="ui.title"/></title>

    <link href="/styles/management/themes/default/style.css" rel="stylesheet" type="text/css"/>
    <link href="/styles/management/themes/css/core.css" rel="stylesheet" type="text/css"/>
    <link href="/styles/uploadify/css/uploadify.css" rel="stylesheet" type="text/css"/>
    <!--[if IE]>
    <link href="/styles/management/themes/css/ieHack.css" rel="stylesheet" type="text/css"/>
    <![endif]-->

<%--
    <script src="/styles/management/js/speedup.js" type="text/javascript"></script>

    <script src="/styles/management/js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/styles/management/js/jquery.cookie.js" type="text/javascript"></script>
    <script src="/styles/management/js/jquery.validate.js" type="text/javascript"></script>
    <script src="/styles/management/js/jquery.bgiframe.js" type="text/javascript"></script>  --%>
    <script src="/styles/xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script>
    <script src="/styles/uploadify/scripts/swfobject.js" type="text/javascript"></script>
    <script src="/styles/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

    <script src="/styles/js/speedup.js" type="text/javascript"></script>
    <script src="/styles/js/jquery-1.7.2.js" type="text/javascript"></script>
    <script src="/styles/js/jquery.cookie.js" type="text/javascript"></script>
    <script src="/styles/js/jquery.validate.js" type="text/javascript"></script>
    <script src="/styles/js/jquery.bgiframe.js" type="text/javascript"></script>

<%--
        <script src="/styles/management/js/dwz.min.js" type="text/javascript"></script>
        <script src="/styles/management/js/src/dwz.cssTable.js" type="text/javascript"></script>
        <script src="/styles/management/js/src/dwz.database.js" type="text/javascript"></script>
    --%>
    <!-- <script src="/styles/management/js/dwz.regional.zh.js" type="text/javascript"></script> -->

    <script src="/styles/js/dwz.core.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.util.date.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.validate.method.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.regional.zh.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.barDrag.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.drag.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.tree.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.accordion.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.ui.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.theme.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.switchEnv.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.alertMsg.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.contextmenu.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.navTab.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.tab.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.resize.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.dialog.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.dialogDrag.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.sortDrag.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.cssTable.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.stable.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.taskBar.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.ajax.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.pagination.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.database.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.datepicker.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.effects.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.panel.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.checkbox.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.history.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.combox.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.print.js" type="text/javascript"></script>
    <script src="/styles/js/dwz.regional.zh.js" type="text/javascript"></script>


    <script type="text/javascript">
        $(function () {
            DWZ.init("/styles/management/dwz.frag.xml", {
                loginUrl:"/management/index/loginDialog.jsp", loginTitle:"Login", // 弹出登录对话框
//		loginUrl:"/management/index!login.do",	// 跳到登录页面
                debug:false, // 调试模式 【true|false】
                callback:function () {
                    initEnv();
                    $("#themeList").theme({themeBase:"/styles/management/themes"});
                }
            });
        });
        //清理浏览器内存,只对IE起效,FF不需要
        if ($.browser.msie) {
            window.setInterval("CollectGarbage();", 10000);
        }
    </script>
</head>


<body scroll="no">
<div id="layout">
    <div id="header">
        <div class="headerNav">
            <a class="logo" href="/management/index!index.do">Logo</a>
            <ul class="nav">
                <li><a href="#">欢迎您，${loginedUser.ename}</a></li>
                <li><a href="/management!toAdd?user.id=${loginedUser.id}" target="dialog" mask="true">个人信息</a></li>
                <%--<li><a href="/management!toAdd?user.id=${loginedUser.id}" target="dialog" rel="dlg_page1" max="true"
                       title="打开窗口1 [自定义标题]" width="500" height="280"><span>打开窗口1</span></a></li>--%>
                <li><a href="/management!editPassWord?user.id=${loginedUser.id}" target="dialog" mask="true">修改密码</a>
                </li>
                <li><a href="/management/index/login.jsp">退出</a></li>
            </ul>
            <ul class="themeList" id="themeList">
                <li theme="default">
                    <div class="selected">blue</div>
                </li>
                <li theme="green">
                    <div>green</div>
                </li>
                <li theme="purple">
                    <div>purple</div>
                </li>
                <li theme="silver">
                    <div>silver</div>
                </li>
                <li theme="azure">
                    <div>天蓝</div>
                </li>
            </ul>
        </div>
    </div>

    <div id="leftside">
        <div id="sidebar_s">
            <div class="collapse">
                <div class="toggleCollapse">
                    <div></div>
                </div>
            </div>
        </div>
        <div id="sidebar">
            <div class="toggleCollapse"><h2>主菜单</h2>

                <div>collapse</div>
            </div>

            <div class="accordion" fillSpace="sideBar">
                <div class="accordionHeader">
                    <h2><span>Folder</span>系统管理(Local)</h2>
                </div>
                <div class="accordionContent">
                    <ul class="tree treeFolder">
                        <li><a href="/admin/getSystemCfg" target="navTab" rel="systemCfgNav">资源菜单</a></li>
                        <li><a href="/management!getUserList" target="navTab" rel="userNav">用户管理</a></li>
                        <li><a href="/admin/gorupManager.action" target="navTab" rel="gorupManagerNav">用户组</a></li>
                        <li><a href="/basesetting/goods.action" target="navTab" rel="goodsType">商品维护</a></li>
                        <li><a href="/basesetting/package.action" target="navTab" rel="goodsType">套系维护[正在做]</a></li>
                        <li><a href="/order/order!toAddOrder" target="navTab" rel="goodsType">门市预约[没做完3]</a></li>
                        <li><a href="/client/client.action" target="navTab" rel="goodsType">客户管理</a></li>
                    </ul>
                </div>

                <c:forEach items="${parentRes}" var="parentRes">
                    <div class="accordionHeader">
                        <h2><span>Folder</span>${parentRes.resName}</h2>
                    </div>
                    <div class="accordionContent">
                        <ul class="tree treeFolder">
                            <c:forEach items="${sonRes}" var="sonRes">
                                <c:if test="${sonRes.parentId==parentRes.id}">
                                    <li><a href="${sonRes.resUrl}?sort=${sonRes.id}" target="navTab"
                                           rel="${sonRes.sort}">${sonRes.resName}</a>
                                    </li>
                                </c:if>
                            </c:forEach>
                        </ul>
                    </div>
                </c:forEach>


            </div>
        </div>
    </div>
    <div id="container">
        <div id="navTab" class="tabsPage">
            <div class="tabsPageHeader">
                <div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                    <ul class="navTab-tab">
                        <li tabid="main" class="main"><a href="javascript:void(0)"><span><span
                                class="home_icon">My Home</span></span></a></li>
                    </ul>
                </div>
                <div class="tabsLeft">left</div>
                <!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
                <div class="tabsRight">right</div>
                <!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
                <div class="tabsMore">more</div>
            </div>
            <ul class="tabsMoreList">
                <li><a href="javascript:void(0)">My Home</a></li>
            </ul>
            <div class="navTab-panel tabsPageContent layoutBox">
                <div>
                    <div class="accountInfo">
                        <div class="right">
                            <p><fmt:formatDate value="${model.now}" pattern="dd MMMM yyyy, EEEE"/></p>
                        </div>
                        <p><span>Welcome, ${loginedUser.ename}</span></p>

                        <p>a</p>
                    </div>

                    <div class="pageFormContent" layoutH="80">
                        <p>
                            <label>Username:</label><span class="unit">${contextUser.userName}</span>
                        </p>

                        <p>
                            <label>First Name:</label><span class="unit">${contextUser.firstName}</span>
                        </p>

                        <p>
                            <label>Last Name:</label><span class="unit">${contextUser.lastName}</span>
                        </p>

                        <p>
                            <label>Phone:</label><span class="unit">${contextUser.phone}</span>
                        </p>

                        <p>
                            <label>Post Code:</label><span class="unit">${contextUser.postcode}</span>
                        </p>

                        <p>
                            <label>Email:</label><span class="unit">${contextUser.email}</span>
                        </p>

                    </div>

                </div>
            </div>
        </div>
    </div>

</div>

<div id="footer"><s:text name="ui.copyrights"/></div>


</body>
</html>